import { OriginalRouteItem } from "@/hooks/useRoute";
export const routes: OriginalRouteItem[] = [
    {
        path: "/",
        component: "@/layout/Main/Main",
        meta: { type: "route" },
        redirect: "/index",
        children: [
            {
                icon: "HomeOutlined",
                path: "/index",
                label: "首页",
                component: "@/views/Home/Home",
            },
            {
                path: "/profile",
                component: "@/views/Profile/Profile",
                meta: { type: "route" },
            },
            {
                path: "/system",
                label: "系统管理",
                icon: "LaptopOutlined",
                children: [
                    {
                        path: "/system/dictionary",
                        label: "字典管理",
                        component: "@/views/Dictionary/Dictionary",
                    },
                    {
                        path: "/system/dictionaryItems",
                        label: "字典数据",
                        component: "@/views/DictionaryItems/DictionaryItems",
                        meta: { type: "route" },
                    },
                    {
                        path: "/system/codeGenerate",
                        label: "代码生成",
                        component: "@/views/CodeGenerate/CodeGenerate",
                    },
                    {
                        path: "/system/codeGenerateConfig",
                        label: "代码生成配置",
                        component: "@/views/CodeGenerateConfig/CodeGenerateConfig",
                        meta: { type: "route" },
                    },
                    {
                        path: "/system/user",
                        label: "管理端用户管理",
                        component: "@/views/User/User",
                    },
                    {
                        path: "/system/role",
                        label: "角色管理",
                        component: "@/views/Role/Role",
                    },
                    {
                        path: "/system/permission",
                        label: "权限管理",
                        component: "@/views/Permission/Permission",
                    },
                ],
            },
        ],
    },
    {
        path: "/login",
        component: "@/layout/Login/Login",
        meta: { type: "route" },
    },
];
